using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Windows.Data;
using System.Windows;
using System.Globalization;

namespace MyPublisher.Windows.Controls.Primitives
{
    public abstract class DataConverterWithDefaultValue : IValueConverter
    {
        public abstract object Convert(object value, Type targetType, object parameter, CultureInfo culture);
        public abstract object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture);

        protected object _defaultConvertToValue = null;
        public object DefaultConvertToValue
        {
            get { return _defaultConvertToValue; }
            set { _defaultConvertToValue = value; }
        }

        protected object _defaultConvertBackValue = DBNull.Value;
        public object DefaultConvertBackValue
        {
            get { return _defaultConvertBackValue; }
            set { _defaultConvertBackValue = value; }
        }
    }
}
